<template>
  <div class="event2">
      <h3>event2组件</h3>
      <button @click="$emit('click','event2中click事件')">event2中click事件</button><br>
      <button @click="$emit('xxx','event2中xxx事件')">event2中xxx事件</button>
      <span>内容</span>
  </div>
</template>

<script>
export default {
name:'Event2'
}
</script>

<style scoped>
.event2{
  background-color: skyblue;
}
span{
  padding: 10px;
}
</style>